<template>
	<view class="smart-container">
		<view class="smart-panel-title\">1.容器</view>
		<view class="smart-panel-h"  @click="goDetailPage('view')">view视图</view>
		<view class="smart-panel-h" @click="goDetailPage('scroll-view')">scroll-view视图</view>
		<view class="smart-panel-h" @click="goDetailPage('swiper')">swiper可滑动view视图</view>
		
		<view class="smart-panel-title\">2.基础内容</view>
		<view class="smart-panel-h"  @click="goDetailPage('text')">text文本布局</view>
		<view class="smart-panel-h" @click="goDetailPage('rich-text')">rich-text富文本编辑</view>
		<view class="smart-panel-h" @click="goDetailPage('progress')">progress进度条</view>
		<view class="item-obj" @click="goArticlePage('article')">4.我的文章</view>
		<view class="smart-panel-title">3.表单组件</view>
		<view class="smart-panel-h" @click="goDetailPage('button')"><text>button按钮</text></view>
		<view class="smart-panel-h" @click="goDetailPage('radio')"><text>radio单选框</text></view>
		<view class="smart-panel-h" @click="goDetailPage('checkbox')"><text>checkbox多选框</text></view>
		<view class="smart-panel-h" @click="goDetailPage('input')"><text>input输入控件</text></view>
		<view class="smart-panel-h" @click="goDetailPage('picker')"><text>picker选择列表</text></view>
		<view class="smart-panel-h" @click="goDetailPage('slider')"><text>6. slider</text></view> 
		<view class="smart-panel-h" @click="goDetailPage('switch')"><text>7. switch</text></view>
		<view class="smart-panel-h" @click="goDetailPage('textarea')"><text>8. textarea</text></view>
		<view class="smart-panel-h" @click="goDetailPage('form')"><text>9. form</text></view>	
		<view class="smart-panel-h" @click="goArticlePage('register')"><text>10.简单注册</text></view>			
		
		<view class="class-title-item"><text class="item-title">4. 其他组件</text></view>
		<view class="smart-panel-h" @click="goDetailPage('navigator')"><text>1. navigator</text></view>
		<view class="smart-panel-h" @click="goDetailPage('image')"><text>2. image</text></view>
		<view class="smart-panel-h" @click="goDetailPage('video')"><text>3. video</text></view>
        <view class="smart-panel-h" @click="goDetailPage('map')"><text>4. map</text></view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			}
		},
		methods: {
			goDetailPage(e){
				if(typeof e ==='string'){
					uni.navigateTo({
						url:'/pages/components/'    +  e  + '/'  +  e,
					});
				} else {
					uni.navigateTo({
						url:e.unl
					});
				}
			},
			goArticlePage(){
				uni.navigateTo({
					url:'/pages/homework/article/article',
					url:'/pages/homework/register/register',
				});
			}
		}
	}
</script>

<style>
 .main-container{
    padding: 15px;
    background-color: #e5e5e5;
}
 .item-obj{
    margin-bottom: 12px;
    /* ... 其他样式 ... */
}
 .class-title-item{
    /* ... 其他样式 ... */
}

</style>
